Debian 9 Stretch
Sponsored Link

Add New Users
2017/06/18
[1] If you'd like to add new users, Add like follows.
# add a user [stretch]

root@dlp:~#
adduser stretch

Adding user `stretch' ...
Adding new group `stretch' (1001) ...
Adding new user `stretch' (1001) with group `stretch' ...
Creating home directory `/home/stretch' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:    
# set user's password

Retype new UNIX password:    
# confirm

passwd: password updated successfully
Changing the user information for stretch
Enter the new value, or press ENTER for the default
Full Name []:
   
# input some informations (or possible to keep empty)

Room Number []:

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [Y/n]
y

root@dlp:~#
[2] If you'd like to give privileges to a new user, Do like follows.
root@dlp:~#
usermod -G adm stretch

root@dlp:~#
vi /etc/pam.d/su
# line 15: uncomment and add a group for admin

auth   required   pam_wheel.so  
group=adm
 
Tweet